package com.wm.blog_web.query;

import com.wm.blog_common.annotation.NotEmpty;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 管理员表 查询
 * </p>
 *
 * @author 半卷流年
 * @since 2020-03-24
 */
public class TAdminQuery implements Serializable{

    /**
     * 用户id
     */
    @NotEmpty("用户id为空")
    private Long adminId;

    /**
     * 角色id,一个用户可能有多个角色
     */
    private List<Long> roleIdList;


    private String username;

    @NotEmpty("新密码为空")
    private String password;

    @NotEmpty("原密码为空")
    private String oldPassword;

    @NotEmpty("确认密码为空")
    private String confirmPw;

    private String userName;

    private String mobile;

    private String email;

    private Long id;

    private String authorization;

    public String getAuthorization() {
        return authorization;
    }

    public void setAuthorization(String authorization) {
        this.authorization = authorization;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    public List<Long> getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(List<Long> roleIdList) {
        this.roleIdList = roleIdList;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getConfirmPw() {
        return confirmPw;
    }

    public void setConfirmPw(String confirmPw) {
        this.confirmPw = confirmPw;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
